package com.example.java.base.concurrency.threadpool.task;

import lombok.extern.slf4j.Slf4j;

/**
 * DemoTask:示例任务
 *
 * @author zhangxiaoxiang
 * @date 2021/4/21
 */
@Slf4j
public class DemoTask implements Runnable {
    @Override
    public void run() {
        try {
            Thread.sleep(500);
        } catch (Exception e) {
            e.printStackTrace();
        }
        log.info("线程名称:【{}】执行了任务", Thread.currentThread().getName());
    }

}